<?php /* Smarty version Smarty-3.1.18, created on 2014-11-10 21:22:43
         compiled from "styles\initializr\templates\index.htpl" */ ?>
<?php /*%%SmartyHeaderCode:9369535d17c66f7812-11190684%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '23a0c27e54ed30e0b89cedbffb24165ce6c00306' => 
    array (
      0 => 'styles\\initializr\\templates\\index.htpl',
      1 => 1415650959,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '9369535d17c66f7812-11190684',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_535d17c6768fe7_75059059',
  'variables' => 
  array (
    'datei' => 0,
    'warning' => 0,
    'meditage' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_535d17c6768fe7_75059059')) {function content_535d17c6768fe7_75059059($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include 'C:\\xampp\\htdocs\\ksk\\include\\smarty\\plugins\\modifier.date_format.php';
?><?php  $_config = new Smarty_Internal_Config('style.cfg', $_smarty_tpl->smarty, $_smarty_tpl);$_config->loadConfigVars(null, 'local'); ?> <?php echo $_smarty_tpl->getSubTemplate ("header.htpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('title'=>"KSK -
Kopfschmerzkalender"), 0);?>

<div class="header-container">
	<header class="wrapper clearfix">
	<h1 class="title">Kopfschmerzkalender</h1>
	<nav>
	<ul>
		<li><a href="index.php?seite=neu">Eintrag</a></li>
		<li><a href="index.php?seite=monat">Monat</a></li>
		<li><a href="index.php?seite=auswertung">Auswertung</a></li>
	</ul>
	</nav></header>
</div>
<div class="main-container">
	<div class="main wrapper clearfix">
		<article> <?php $_smarty_tpl->tpl_vars["datei"] = new Smarty_variable("./styles/".((string)$_smarty_tpl->tpl_vars['style']->value)."/templates/".((string)$_smarty_tpl->tpl_vars['seite']->value).".htpl", null, 0);?> <?php if (file_exists($_smarty_tpl->tpl_vars['datei']->value)) {?> <?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['seite']->value).".htpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
 <?php } else { ?>
		<h1>Fehler!</h1>
		<p>Die Datei "<?php echo $_smarty_tpl->tpl_vars['datei']->value;?>
" existiert nicht.</p>
		<?php $_smarty_tpl->smarty->loadPlugin('Smarty_Internal_Debug'); Smarty_Internal_Debug::display_debug($_smarty_tpl); ?> <?php }?> </article>
		<!--                 
                    <header>
                        <h1>article header h1</h1>
                        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sodales urna non odio egestas tempor. Nunc vel vehicula ante. Etiam bibendum iaculis libero, eget molestie nisl pharetra in. In semper consequat est, eu porta velit mollis nec.</p>
                    </header>
                    <section>
                        <h2>article section h2</h2>
                        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sodales urna non odio egestas tempor. Nunc vel vehicula ante. Etiam bibendum iaculis libero, eget molestie nisl pharetra in. In semper consequat est, eu porta velit mollis nec. Curabitur posuere enim eget turpis feugiat tempor. Etiam ullamcorper lorem dapibus velit suscipit ultrices. Proin in est sed erat facilisis pharetra.</p>
                    </section>
                    <section>
                        <h2>article section h2</h2>
                        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sodales urna non odio egestas tempor. Nunc vel vehicula ante. Etiam bibendum iaculis libero, eget molestie nisl pharetra in. In semper consequat est, eu porta velit mollis nec. Curabitur posuere enim eget turpis feugiat tempor. Etiam ullamcorper lorem dapibus velit suscipit ultrices. Proin in est sed erat facilisis pharetra.</p>
                    </section>
                    <footer>
                        <h3>article footer h3</h3>
                        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam sodales urna non odio egestas tempor. Nunc vel vehicula ante. Etiam bibendum iaculis libero, eget molestie nisl pharetra in. In semper consequat est, eu porta velit mollis nec. Curabitur posuere enim eget turpis feugiat tempor.</p>
                    </footer>
                
 -->
		<?php if ($_SESSION['user_id']) {?>
		<aside id="profil" style="margin-bottom: 20px;">
		<h3>Hallo <?php echo $_SESSION['user'];?>
</h3>
		<ul>
			<li><a href="index.php?seite=logout">Logout</a></li>
			<li><a href="#" id="toggle">Kopfschmerztage <?php if ($_smarty_tpl->tpl_vars['warning']->value) {?>ausblenden<?php } else { ?>anzeigen<?php }?></a></li>
			<li><a href="index.php?seite=einstellung">Einstellungen</a></li>
		</ul>
		</aside>
		<br><?php }?>
		<aside id="kstage">
		<h3>Monat <?php echo smarty_modifier_date_format(time(),'%B %Y');?>
</h3>
		<p>
			Tage mit Kopfschmerzen: <?php echo $_smarty_tpl->tpl_vars['meditage']->value['kstage'];?>
<br> Tage mit
			Schmerzmitteln: <?php echo $_smarty_tpl->tpl_vars['meditage']->value['meditage'];?>

		</p>
		</aside>
	</div>
	<!-- #main -->
</div>
<!-- #main-container -->
<?php echo $_smarty_tpl->getSubTemplate ("footer.htpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<?php }} ?>
